Move File to Folder
AutomatR.GoogleDrive.Activities.MoveFileToFolder
The "Move File to Folder" activity in AutomatR is part of the Google Drive activities package, facilitating the movement of files from one folder to another within a user's Google Drive account. This activity streamlines file management tasks in Google Drive, enhancing the efficiency of automation workflows.
Properties
Name | Description |
---|---|
Input | |
File Name To Be Moved | Specifies the name of the file to be moved, including the file extension. String variables containing the file name. |
Destination Folder | Specifies the path of the destination folder on your Google Drive to which the file should be moved. String variables containing the destination folder path. |
Misc | |
Display Name | The display name of the activity. A display name is automatically generated when you indicate a target. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Move File to Folder" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs true or false based on the success of the move file operation. Variables of relevant types (e.g., Boolean variables) to store the operation result. |
How to use:
- Drag and drop the "Move File to Folder" activity onto the workflow.
- Configure the properties by specifying the file name and destination folder path within the Google Drive account.
- Optionally, configure the delay.
- Execute the workflow to move the specified file within Google Drive.
Example: Consider an example where the "Move File to Folder" activity is used to move a file named "document.txt" from one folder to another within Google Drive:
Move File to Folder:
File Name To Be Moved: "document.txt"
Destination Folder: "Root/Folder2/"
Result: isMoveSuccessful
In this example, the activity moves the "document.txt" file from its current location to the "Folder2" directory within Google Drive. The result of the operation (success or failure) is stored in the Boolean variable "isMoveSuccessful" for further handling in the workflow.